// Change it to default wallpaper !

use std::os::windows::ffi::OsStrExt;
use std::ffi::OsStr;
use winapi::um::winuser::SystemParametersInfoW;

pub(crate) fn set_wallpaper(){
    let path = r"C:\Windows\Web\Wallpaper\Windows\img0.jpg";

    let wide_path: Vec<u16> = OsStr::new(path).encode_wide().chain(Some(0)).collect();
    unsafe{
        SystemParametersInfoW(
            0x0014, 
            0,
            wide_path.as_ptr() as *mut _,
            0x0001 | 0x0002,
        );
    }
}